package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 影票订单信息对象 ticket_order_info
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("ticket_order_info")
public class TicketOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;
    /** 订单信息ID */
    @Excel(name = "订单信息ID")
    private Long orderId;
    /** 取票号 */
    @Excel(name = "取票号")
    private String printCode;
    /** 放映时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "放映时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date showTime;
    /** 排期ID */
    @Excel(name = "排期ID")
    private String scheduleId;
    /** 影⽚编码 */
    @Excel(name = "影⽚编码")
    private String filmCode;
    /** 影⽚名称 */
    @Excel(name = "影⽚名称")
    private String filmName;
    /** 影⽚别名 */
    @Excel(name = "影⽚别名")
    private String filmShortName;
    /** 影⽚版本 */
    @Excel(name = "影⽚版本")
    private String filmVersion;
    /** 影片语言 */
    @Excel(name = "影片语言")
    private String filmLanguage;
    /** 影片海报 */
    @Excel(name = "影片海报")
    private String poster;
    /** 影厅编码 */
    @Excel(name = "影厅编码")
    private String hallCode;
    /** 影厅名称 */
    @Excel(name = "影厅名称")
    private String hallName;
    /** 时⻓，单位：分钟 */
    @Excel(name = "时⻓，单位：分钟")
    private String duration;
    /** 影票订单⾦额 */
    @Excel(name = "影票订单⾦额")
    private Long orderAmount;
    /** 影票⽀付⾦额 */
    @Excel(name = "影票⽀付⾦额")
    private Long payAmount;

    private String mobile;
    private String cinemaName;
    private String status;

    private List<TicketOrderTicketInfo> ticketList;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public void setPrintCode(String printCode)
    {
        this.printCode = printCode;
    }

    public String getPrintCode()
    {
        return printCode;
    }
    public void setShowTime(Date showTime)
    {
        this.showTime = showTime;
    }

    public Date getShowTime()
    {
        return showTime;
    }
    public void setScheduleId(String scheduleId)
    {
        this.scheduleId = scheduleId;
    }

    public String getScheduleId()
    {
        return scheduleId;
    }
    public void setFilmCode(String filmCode)
    {
        this.filmCode = filmCode;
    }

    public String getFilmCode()
    {
        return filmCode;
    }
    public void setFilmName(String filmName)
    {
        this.filmName = filmName;
    }

    public String getFilmName()
    {
        return filmName;
    }
    public void setFilmShortName(String filmShortName)
    {
        this.filmShortName = filmShortName;
    }

    public String getFilmShortName()
    {
        return filmShortName;
    }
    public void setFilmVersion(String filmVersion)
    {
        this.filmVersion = filmVersion;
    }

    public String getFilmVersion()
    {
        return filmVersion;
    }
    public void setFilmLanguage(String filmLanguage)
    {
        this.filmLanguage = filmLanguage;
    }

    public String getFilmLanguage()
    {
        return filmLanguage;
    }
    public void setPoster(String poster)
    {
        this.poster = poster;
    }

    public String getPoster()
    {
        return poster;
    }
    public void setHallCode(String hallCode)
    {
        this.hallCode = hallCode;
    }

    public String getHallCode()
    {
        return hallCode;
    }
    public void setHallName(String hallName)
    {
        this.hallName = hallName;
    }

    public String getHallName()
    {
        return hallName;
    }
    public void setDuration(String duration)
    {
        this.duration = duration;
    }

    public String getDuration()
    {
        return duration;
    }
    public void setOrderAmount(Long orderAmount)
    {
        this.orderAmount = orderAmount;
    }

    public Long getOrderAmount()
    {
        return orderAmount;
    }
    public void setPayAmount(Long payAmount)
    {
        this.payAmount = payAmount;
    }

    public Long getPayAmount()
    {
        return payAmount;
    }

    public List<TicketOrderTicketInfo> getTicketList() {
        return ticketList;
    }

    public void setTicketList(List<TicketOrderTicketInfo> ticketList) {
        this.ticketList = ticketList;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("printCode", getPrintCode())
            .append("showTime", getShowTime())
            .append("scheduleId", getScheduleId())
            .append("filmCode", getFilmCode())
            .append("filmName", getFilmName())
            .append("filmShortName", getFilmShortName())
            .append("filmVersion", getFilmVersion())
            .append("filmLanguage", getFilmLanguage())
            .append("poster", getPoster())
            .append("hallCode", getHallCode())
            .append("hallName", getHallName())
            .append("duration", getDuration())
            .append("orderAmount", getOrderAmount())
            .append("payAmount", getPayAmount())
            .toString();
    }
}
